import request from '../../utils/request'
import requestMock from "../../utils/requestMock"
const token = "643df58a-13e3-4895-8601-d1a98e718fd9"
enum API {
    VIDEO = 'moment/moments/rec/default?access_token=643df58a-13e3-4895-8601-d1a98e718fd9&   column=recommend   &    pageSize=20   &    pageNum=0  &   localCache=0',
    VIDEOLIST = "/videoDetail/videoList"
}

export const reqVideo = (pageNum: number, pageSize: number, localCache: number) => request.get<any, any>(`moment/moments/rec/default?access_token=${token}&column=recommend&pageSize=${pageSize}&pageNum=${pageNum}&localCache=${localCache}`)
export const reqVideoList = () => requestMock.get<any, any>(API.VIDEOLIST)